<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>

                <tr><td class="tt">单位名称</td><td id="name" class="tv"></td><td class="tt">所属分类</td><td id="type" class="tv"></td></tr>
                <tr><td class="tt">单位性质</td><td id="nature" class="tv"></td><td class="tt">法人代表</td><td id="legaler" class="tv"></td></tr>
                <tr><td class="tt">注册地址</td><td id="zhuaddr" colspan="3" class="tv"></td></tr>

                <tr><td class="tt">税务类型</td><td id="taxtype" class="tv"></td><td class="tt">税号</td><td id="ratenum" class="tv"></td></tr>
                <tr><td class="tt">开票类型</td><td id="piaotype" class="tv"></td><td class="tt">税点(%)</td><td id="rate" class="tv"></td></tr>
                <tr><td class="tt">单位地址</td><td id="unitaddr" class="tv"></td><td class="tt">电话号码</td><td id="phone" class="tv"></td></tr>
                <tr><td class="tt">开户银行</td><td id="bankname" class="tv"></td><td class="tt">银行账号</td><td id="banknum" class="tv"></td></tr>

                <tr><td class="tt">经营类别</td><td class="tv" id="genre" colspan="3"></td></tr>
                <tr><td class="tt">单位评级</td><td class="tv" id="danlevel" colspan="3"></td></tr>

                <tr><td class="tt">联系人</td><td id="lianer" class="tv"></td><td class="tt">联系人手机号</td><td id="liantel" class="tv"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_dealcom_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                $("#name").text(data.name);
                $("#type").text(data.type);
                $("#nature").text(data.nature);
                $("#legaler").text(data.legaler);
                $("#zhuaddr").text(data.zhuaddr);
                $("#taxtype").text(data.taxtype);
                $("#ratenum").text(data.ratenum);
                $("#piaotype").text(data.piaotype);
                $("#rate").text(data.rate);
                $("#unitaddr").text(data.unitaddr);
                $("#phone").text(data.phone);
                $("#bankname").text(data.bankname);
                $("#banknum").text(data.banknum);
                $("#genre").text(data.genre);
                $("#danlevel").text(data.danlevel);
                $("#lianer").text(data.lianer);
                $("#liantel").text(data.liantel);
                $("#explain").text(data.explain);

                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('dealcom', param_id);
    });



</script>
</body>
</html>




